package com.mxl.vhr.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.mxl.vhr.mapper.UserMapper;
import com.mxl.vhr.model.User;
import com.mxl.vhr.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author MXL
 * @date 2022/2/11
 **/
@Service
@DS("vhr")
public class UserServiceImpl implements IUserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> list() {
        return userMapper.selectList(null);
    }
}
